#include <stdio.h>
int gcd(int a,int b)
{
    int m=0;
    while(m=a%b)
    {
        a=b;
        b=m;
    }
    return b;
}
int lcm(int a,int b)
{
    int c,Lcm;
    c=gcd(a,b);
    Lcm=a*b/c;
	return Lcm;
}
int main()
{
    int n,LCM,i;
    scanf("%d",&n);
    int a[n];
    for(i=0;i<n;i++)
    {
    	scanf("%d",&a[i]);
	}
	if(n==1)
        printf("%d",a[0]);
	if(n==2)
	{
	    printf("%d",lcm(a[0],a[1]));
	}
	if(n>2)
    {
        LCM=lcm(a[0],a[1]);
        for(i=2;i<n;i++)
        {
            LCM=lcm(LCM,a[i]);
        }
		printf("%d",LCM);
	}
	return 0;
}
